package com.xxxx.rpc.pojo;

import java.io.Serializable;
import java.math.BigDecimal;


//购物车对应的实体类
public class CartVo implements Serializable {

    //商品的Id(购物车中添加的是商品，因此是商品的Id，而不是购物车商品id)
    private Integer goodsId;

    //商品的图片，依赖是商品表中商品的信息
    private String originalImg;

    //购物车中商品的名称
    private String goodsName;

    //EGO价
    private BigDecimal goodsPrice;

    //购买数量
    private Integer goodsNum;

    //订单时间
    private Integer addTime;

    //有一个删除的操作


    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getOriginalImg() {
        return originalImg;
    }

    public void setOriginalImg(String originalImg) {
        this.originalImg = originalImg;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public Integer getAddTime() {
        return addTime;
    }

    public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }

    public CartVo() {
    }

    public CartVo(Integer goodsId, String originalImg, String goodsName, BigDecimal goodsPrice, Integer goodsNum, Integer addTime) {
        this.goodsId = goodsId;
        this.originalImg = originalImg;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsNum = goodsNum;
        this.addTime = addTime;
    }

    @Override
    public String toString() {
        return "CartVo{" +
                "goodsId=" + goodsId +
                ", originalImg='" + originalImg + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsNum=" + goodsNum +
                ", addTime=" + addTime +
                '}';
    }
}
